package com.rtx.model.po.service;

import java.util.List;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rtx.model.dto.response.EdiResponse;
import com.rtx.model.po.entity.system.User;

public interface UserDAO extends IService<User>{
	
	void selectPage(String datasourcekey,Page<User> page,LambdaQueryWrapper<User> qw);

	public User queryUserByUsername(String datasourcekey,String username);
	
    public void updateLastLoginDate(String datasourcekey,User user);
    
    public void updateByCondition(String datasourcekey,User user);
    
    List<User> selectUserByQueryCondition(String datasourcekey,LambdaQueryWrapper<User> qw);
    
    int insert(String datasourcekey,User user);
    
    public EdiResponse deleteByusername(String datasourcekey,String username);
    
    int deleteByCondition(String datasourcekey,LambdaQueryWrapper<User> qw);
    
    int updateMenuPermission(String datasourcekey,User user);
    
    boolean isExistBy(String datasourcekey,LambdaQueryWrapper<User> qw);
}
